package org.dandsoft.blackbox.snn;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: dvilyuzhanin
 * Date: 16.03.2009 19:04:20
 */
public class ObjectId implements Serializable {
    private int value;

    public ObjectId(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ObjectId objectId = (ObjectId) o;

        if (value != objectId.value) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return value;
    }

    @Override
    public String toString() {
        return "ObjectId{" +
                "value=" + value +
                '}';
    }
}
